From 40dd0530f90d6b29bfd4a6f9f0ee5de760decb7c Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 13 Feb 2010 01:41:37 +0000 Subject: [PATCH] Stylize API files --- includes/api/ApiMain.php | 2 +- includes/api/ApiQueryImageInfo.php | 2 +- includes/api/ApiQueryInfo.php | 2 +- includes/api/ApiUpload.php | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index da986323bd..8ccb8a6e0a 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -415,7 +415,7 @@ class ApiMain extends ApiBase { if ( !$this->mInternalMode ) { // Ignore mustBePosted() for internal calls if ( $module->mustBePosted() && !$this->mRequest->wasPosted() ) - $this->dieUsageMsg( array ('mustbeposted', $this->mAction ) ); + $this->dieUsageMsg( array ( 'mustbeposted', $this->mAction ) ); // See if custom printer is used $this->mPrinter = $module->getCustomPrinter(); diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index e52d141078..8441768fd7 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -318,7 +318,7 @@ class ApiQueryImageInfo extends ApiQueryBase { return array ( 'Returns image information and upload history' ); - } + } public function getPossibleErrors() { return array_merge( parent::getPossibleErrors(), array( diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index b1d1e9b607..e562c4d9d8 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -332,7 +332,7 @@ class ApiQueryInfo extends ApiQueryBase { $pageInfo['preload'] = $text; } - } + } return $pageInfo; } diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index 72146e68b0..12c16233ea 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -138,9 +138,9 @@ class ApiUpload extends ApiBase { // Cleanup any temporary mess $this->mUpload->cleanupTempFile(); - if( isset($result['chunked-output']) ) { - foreach ($result['chunked-output'] as $key => $value) { - if($value === null) $value = ""; + if ( isset( $result['chunked-output'] ) ) { + foreach ( $result['chunked-output'] as $key => $value ) { + if ( $value === null ) $value = ""; $this->getResult()->addValue( null, $key, $value ); } } else { @@ -248,8 +248,8 @@ class ApiUpload extends ApiBase { $this->getResult()->setIndexedTagName( $result['details'], 'error' ); $this->dieUsage( 'An internal error occurred', 'internal-error', 0, $error ); - } elseif( $this->mParams['enablechunks'] ) { - return array("chunked-output" => $status->value); + } elseif ( $this->mParams['enablechunks'] ) { + return array( "chunked-output" => $status->value ); } $file = $this->mUpload->getLocalFile(); -- 2.20.1